test case for #324