Fixed a test.

The test was still passing, presumably because the conditional
following the one being tested prevented the resulting functionality
from working.  I may need to add more mocking logic here to create an
otherwise-failing situation aside from the one conditional being tested.