Added the Filter function and tests to send to dev.
Updated filter events test