Updated to perform some tests only if we are not cross-compiling