tests for in() and has()