Refactoring test infrastructure to be project independent.
Authored by: agalal 2012-11-23
Parent: [r1410]
Child: [r1412]