tests for #1115