test: add testdata and TestOpenFile