add tests for as_op decorator

Still in progress. tests pass but AttributeError seems to be raised.