Added JUnit tests for MapSquare.