added test cases for all binary functions