tests for #436
fix #436