Added get_module_names helper
Test the machine interface handlers
Removed misplaced test
Streamlined & cleaner code