tests for ensure and dispatch for filter