added unit tests for maps