add binaryStringWithInteger method and tests