completed test and solution to permutation step