Added open(), close() and isOpen()-methods
Test