Fixed test link issue on cross compiling