Add tests for ops.py

This tests are checking that orders of calls inside of methods are
correct.

Change-Id: Idce44ef3e7ec7c7c637156034f97a2530577db54
Merge "Add tests for ops.py"