Maps with pointers test along with a pointer bug fix