added test for custom safe filter