[bug 966426] Add test for has_email filter