ArrayCollection fix filter and added tests for it