Setup test program to use the same config as test runner

This allows for nose plugins to be setup properly
during the test run. So now flags such as '--with-xunit'
will be honored.

Closes-Bug: #1265020

Change-Id: Ie9fc2b921fbd9c1c7558c3283f80faa8dbcc4a3d
Merge "Setup test program to use the same config as test runner"