Added tests for MDBE_NOT_OPEN.