Performance improvement
Adding some test-cases with permutations on order of inputs and outputs