Don't access ivars in tests

Add some helper methods for tests.
11 files changed