Added a test

I noticed my earlier code wasn't expecting such a case.