Added Fredkin gate test