tests upload functionality