The test dropped the 'test' database which is heavily used both for checking functionality and running tests. A better alternative is to use a custom database that is only used by this test.
Added tests from develop. The test results need to be modified for 2.0.