added a few more tests for pauli module. fixed bug in unit test.