add `unchanged` function to pytest