Fix LongKeyMapRepository constructor that would fail when passing an empty map
Add basic test cases for LongKeyMapRepository