changed CMake code for user test factory cc file generation

- addresses issue #80