Assert exception message in tests

Closes #76