Fixes the compilation of and add build directives for most not-unit tests

This patch adds the target not_unit_tests for building most of the
non-unit test of the module to the CMake build system. The following
non-unit tests will be build:
check_grid_normals
buildcpgrid_test
max_zdist_test
finitevolume
mapper_test
This patch also includes various fixes for the above tests to make them
compile.
partition_test.cpp