Functional unit testing with mock application object