Modified tests for compareModuleAndPin()