check for CATKIN_ENABLE_TESTING

This patch follows the idea of pull request #89, but has been adjusted for the indigo-devel branch. Adjusting package.xml is not required because indigo only provide catkin versions that support this feature.