Updating top-level and test CMakeLists.txt files.

Adding cmake support for all check unit tests. Adding `CMakeLists.txt`
file to `test/data` directory, which copies the test data files required
for the tests to the binary directory.