The order of exceptions can vary based on resolution order. Make sure we
sort them and make assertions on that. Also improve other assertions in
this test suite.
Change-Id: I2d8f6f7848f5bd22abbb0284aa4780aec60bd0d8 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>