Fix unit tests running unnecessarily slow

Mocked/reduced various sleeps that got triggered on certain tests that
caused the tests to run unnecessary slow.

Closes-Bug: #1286729
Change-Id: Ib24be3d9aaa2b71d137ae4f0a9adc4986a49bdca
Merge "Fix unit tests running unnecessarily slow"