DRY up the context processing algorithm unit tests.