updating tags to be an object, not an array
adding tests for Filter class