make rostest in CMakeLists optional (ros/rosdistro#3010)

I was unsure if I should add this commit to hydro-devel and/or indigo-devel. So for the moment, I just added this patch to the hydro-devel branch, because the latest release 1.10.1 was on this branch.