Tests used to build whenever CATKIN_ENABLE_TESTING was on. They now also need -DBUILD_ROBOT_IMAGE_GEOMETRY_TESTS=ON, in both build modes.