Unit test map access JS