adds a test for #540
Merge branch 'master' of github.com:bitovi/canjs