[tests] Fix some corlib unit tests to run successfully on iOS