refactored SharedHashMapTest for easier understanding

Pls. take a look at this. I've done this changes because I found the test very hard to understand in its original form. Since I've removed some lines I didn't see the point of I might have broken behavior. Pls. take a look.