added tests for #409