Completed ViewFactory Testing

completed ViewFactory testing, stubbed test for ViewModelHelper next.
Minor changes to ViewFactory to help with testing.