testapp to write testcase using factory