Allow user to override assertions.

Closes #139.