added tests for contains check of state