Added unit test for doFilter