add tests for as_op decorator

Still in progress.