Added a check for missing modules when testing modules which may not exist on the test machine.