expose integrity error and flesh out tox tests