Fix remaining tests

Since the test configs inherit directly from libqtile.confreader.File, we
should not overwrite their attributes with the defaults without first checking
if they exist.
Rearrange some things to avoid circular imports