I think these config setups should be moved to one function that does the setup for all unittests. Maybe a specialized test class (if possible) or at least a function.