Added a unit test to try and track down the bug reported in issue #23