I found there is a hacking on MediaDB at existing tests. We need to change the code to use MockMediaDB. You may use MockHelper automatically to wire MockMediaDB or wire it by yourself at suiteStartup and suiteTeardown.

Please also add constants used by existing tests to your MockMediaDB, like OPENING, CLOSING, etc.