adding some tests for collection.length()
Merge branch 'master' into gh-pages
fixing collection tests
Merge branch 'master' into gh-pages