Removed main function
Changed test class to sim.