Added tests for binary