Add test, add config files, reorder CMakeLists.txt