Fixed CTest return code