Modularizing TestModularity
TestModularity tests
bugs in test modularity functions