added support for testing in the Simulator with iPhone and iPad