Fix for send files on nginix
Test fixes