Begin segmenting test setup code into test_common module