better error message for corner case in test