Fix cmake and remove test output.