Adding additional info to assert throw for correct error displaying.