Fixes typo.
Refactors tests to reduce double duplication and increase simplicity.
Adds train class with methods to add and remove carriages, and to check carriage occupancy.