Fixed a bug in BooleanRefactoring.
Added tests to verify boolean in and out samples are functionaly equivalent.