add tests for as_op decorator
add infer_shape test to as_op decorator
Merge pull request #7 from jsalvatier/op_decorator

add tests for as_op decorator