updated test functions about operator overload.