tests for #461
fix #461