iOS: fix broken unit testing