fix test_vessel
fix ugly code in inside_vessel