The advantage of testing pressure vessels with water is that the failure mode is usually less bad than gas (because it doesn't expand through any breach like gas does).
Unfortunately a sub is the opposite of a pressure tank (the pressure is on the outside) so you need a pressure bottle bigger than the sub to test it in. I don't think these are common or easy to come by.