make method private
migrate viewgen from testrunner
implement index test with ddoc definition phase