Added ViewFactory Test

Began the process of making ViewFactory more testable. Many method
signatures have been updated to help this.