Added a test for issue #267