add method filenameBytes to transfer; start adding tests for FileEndpoint