new test and update function to return full file url