Stop running CONF getattr during import

This commit fixes 2 cases where a getattr was being run during test
file import which causes errors to be printed if a config file isn't
present.

Change-Id: I44a7750860c0a024997db5dd9ff3fa5b7332993a
Merge "Stop running CONF getattr during import"