Merge pull request #9951 from lodr/bug-846258-unit-testing-setup

Bug 846258 - Adding unit test infrastructure and tests for application startup cases.
r=@jmcanterafonseca(cherry picked from commit 6a2e916b9f00d2984699c38592b27e23ad6be67d)

Conflicts:
	apps/costcontrol/index.html