Minor bugfix in test_genterrain.c