add test for behaviour described in #1297
Merge pull request #1304 from ractivejs/gh-1297

add test for behaviour described in #1297