Resolve issues with tests with CocoaPods and xctool

Thanks to @blakewatters for the solution