refactoring, move testdata to test resources