tests for #293
fix #293