adding tests directory and setup
checking for an array on the tags before trying to use it as an object
adding typehint for FilterCollection