add test for uploadFile