added bitwise operators, added more tests