fix beforeChange test suite