Test that email filtering works