Move base test case logic out of __init__.py

It's an antipattern to have functional code in an __init__.py. Move it
into base.py to be less anti.

Change-Id: Ib4db548b78e4e760d94099596a3c495a839836dc
Merge "Move base test case logic out of __init__.py"