add tests + file upload