test: Unify all tests to use the pass_if_equal function.