Enhanced DBTest to respect SS_DATABASE_PREFIX if set

The testcase in `DBTest` fails, if `SS_DATABASE_PREFIX` is set, as it does not respect the prefix when calling `DB::valid_alternative_database_name`.