adding some tests for collection.length()
fixing collection tests