Fixed test issues on Xamarin