failing test and partial solution for #996
fixes #966
Merge pull request #1067 from ractivejs/gh-996

failing test and partial solution for #996