TESTS: Add Tests for bitwise op! (AND,OR,XOR)

FIX: regression caused by changes in insert-char function
Merge pull request #786 from qtxie/bitwise-test

TESTS: Add Tests for bitwise op! (AND,OR,XOR)