Does this need to be a functional test rather than a unit test?