Test fixes

Fixes Database tests.

Breaks were mostly caused by removing important test classes from the UnitTest component.