test file input function