Add file io tests