test error with percentage