remove unnecessary assertions in tests.