Move ElemOp tests over to gtest.

This involves removing lots of internal state checking.