Fixed a poorly-constructed test; fixed the bug that the corrected test revealed.