Added test for #334