Tests exception names and reasons instead of using the exception class matcher