indexOf and filter tests