How to Implement a Custom useMap Hook With Tests