added test for local map stats

This test is too long imho. A good test should not be longer than 10/20 lines.. at most.


You are trying to test all kinds of things.. puts... gets... etc.. Move them to separate test methods. You will see that the test becomes a lot shorter and easier to maintain.