fix old tests
PENDING: implement file upload