Refactored away some of the duplicated code, the test doesn't need to know
about the context/etc.