Add 'equals' methods to command objects allowing them to be properly compared during testing.
Refactor tests to more accurately reflect the behaviour of the scan server. Add more debugging information.