created test for method excludeAll with collection