add benchmark, also improve test error message for consistency