fixed combinations test with loop and added permutations-test