added tests for meanfield module