Fixed testing bug: moved readConfig earlier in method.