test(machine): Add tests for machine pkg