[BUGFIX] Fix ResourceFactory Test