add test coverage for terrain module