added tests for nth occurence of the needle not present.
removed parameter leftovers