added resource factory test

removed obsolete comment