Write tests for filter & allow