Added a testing environment and tests. Refactored maps