test and fix for #1305 part 2
Merge pull request #1308 from ractivejs/gh-1305-b

test and fix for #1305 part 2