What about passing the fake result into the testDB1 method as an argument, then you wouldn't need to include this extra conditional logic.