Fixes var name bug in filter.js, updates test to assert handling strings