tests for #411
fix #411