added .close() tests