tests for #404
fix #404