binary string tests