Handle input is transformed binary case 

I have tested before so I would keep the test below to be consistent in this moment.
The adding code is just forcing every time input data column to convert to factor type first so that later the r01 function can have a well test on it.