Adding assertSessionHasErrors