add unit tests for hashmap, add common param check mechanism