added tests for unary binary ternary