Added tests for Customer view.
Refactored Customer view to be testable.