iOS fixes for unit tests.