Added unit tests and mapfile for style improvements.