add test for behaviour described in #1297