Add test case for MapDB bug