feat: files endpoint functional tests