fixing tests about abstract resource factory