The failing tests are due to missed optimization opportunities. The current tests are not hitting some edge cases.