add methods in file reference attachment resource and empty tests