added new method to the factory util class to normalize collections of
factory args. updated unit tests