adding a test to cover issue #145

It doesn't break any more, so it must have been overcome by events. This
proves it. Resolves #145 

I'm making a pull request this time, to make sure that I'm contributing correctly. If happy with the way I'm doing it, I'll gladly just commit to master :)