Added test case for #344