Add tests for binary