Fix tests for ios 6.1