Note to self: transform this test to use stubs