Added a test case which exemplifies #366