tests for #418
fix #418