fixed unit test DBRefTest badrefs scenarios