Added null checking for filters
Added tests for filters with null inputs