test and docu for opening/closing