Added unit tests and modified most of the methods from commands.Commands.class so they pass the tests.