add a regression test for hashmap access of &str