Fix assertLessThanOrEqual
Improves tests and asserts
Add unittest for opIndex