Bug 905116 - Unit tests and fix app opening delay