add test for #1050
fixes #1050
Merge pull request #1060 from ractivejs/gh-1050

fixes #1050