basic map reduce static method and test.