function is.dataformat
add tests for is.dataformat