tests for #410
fix #410