Simplified function definition. Set up test so that multiple threads will be created.
Where operator works.