Edited cmake to generate test executable.