writing unit tests for persistent_map