add testdata functionality