Added a test case provided by @GrahamDennis.