update client test a little
fix bug for handle empty file data when creating Request