IMO, using a functional test for this is overkill. A unit tests can perfectly cover this issue and will be way faster