Helpers for writing expectation tests
