Fix CATKIN_ENABLE_TESTING set to False issue.

Hi,

The CMake file didn't check for catkin preferences to enable/disable testing utilities.
Which resulted in failure to compile when disabling tests using CATKIN_ENABLE_TESTING=False cmake flag.

Regards,