Maybe I'm lost here now but as far as I can tell the outputs for tests 2, 4, and 7 are correct.
_________________________
There are two types of vessels, submarines and targets.