Added Unit tests for isOpen method