Created an enumeration for machines and added support for test mode in machines.