Removes side effects from asserts in tests/