Added ability to show sub-domains. Refactored AppCtrl unit test to be less verbose.