JS backend: temporary fixes for filter test cases.