Using NestedTempfile in new BaseTestCase class

Blueprint: common-unit-tests
Change-Id: I3f2c2f93f3c04a5487260b33f6b78e31c1e4a8d6
Merge "Using NestedTempfile in new BaseTestCase class"