tests: replace usage of `is` with `is_same_instance`