Adds test for non-binary ints inside of the string

The method is expected to check for non-binary ints inside
of the input string and should return 0 then.