testsuite: fixed unit tests for database fixes