added test case for binary