added tests for contain function