added unit tests for testing permuting controls and target of 3-qubit gates