tests for machine