Add tests for expectation mechanism.
Ass new expectation (predicate based).