Added JUnit tests for the ship.java class