Use comparsion to "" instead of .empty() in tests
Remove trailing whitespace from CMakeLists.txt