updated unit test to more correct upload file approach