Factor out core setup from testcase

Reuse Core generated from TestFramework