test binary sum