updated tests and functionality of ship class