Added unit test for compare command
Implement -—machine option