use temporary variable for expected value to prevent mismatch between tests and resulting error messages.