test(hashmap): extract the hashmap fixtures

Make tests more robusts as there is a test in Gruntfile and should help the PR #38