Improve the error reported by a failed expectation

Modify the error reported when a line does not match the expectation
provided by `expect` or `wait`:
 - use assert.AssertionError instead of plain Error
 - fill actual and expected properties
 - include the expectation in the error message