Fix tests for call_until_true function.

Unit tests for call_until_true function has to check
if passed function is actually called expected number
of times under two main cases:

- when given func returns true before timeout
- when given func never returs true before timeout

It has to be tested also that given paramterers are
passed when calling given function.

Change-Id: I43009e18987c73be2412db10dc605e4fc6661d97
2 files changed