Added unit tests to cover itemmap