testcase for issue #54

Add testcase for issue #54, which appears to have been fixed by commit
2fa779e.