tests for #294
fix #294