mr unit test (intermediate)