Fix bug with test filtering