Hi Jay,
There are some subtleties here depending on how you are testing. I'm assuming you're doing more unit-style tests and not integration tests in an actual key and visible window.
Assuming your test subject is a UIViewController, it is worth noting that its view is loaded lazily. Many developers assert that the view is not nil in order to force its loading, e.g. subject.view should_not be_nil;
If you also want autolayout to lay out your views, you probably want to perform [subject.view layoutIfNeeded]; -- this will invoke the lazy loading as well as request auto layout. you also may want to perform beginAppearanceTransition.../endAppearanceTransition or call viewWill/DidAppear: if not doing integration-style testing.
Hopefully this helps. if not, let us know with more concrete examples and we'll try to help.
Thanks!
Andrew