Add length method to ship class and set variable length test