implemented first version of MachineTest