test cases for contains()