move basetestcase into src as test util