The variable CATKIN_ENABLE_TESTING is only available since catkin 0.5.68. To have the intended behavior for CATKIN_ENABLE_TESTING=ON and OFF, you need catkin 0.5.68 or later. It is okay to have this constraint only in the packages that use this feature. Most people on hydro have 0.5.68 installed anyway.