BUG: Scale cannot be negative in optimizer test.