Add IF for rostest

Enabled check for rostest which is needed when cross compiling.