Fix unit test assertions and invocations.