add static tests for heightmap.c