add paramName to program search

I added one little thing and a failing test. I'm going to let you go about your design since making that search method testable would require a decent refactor. I'd stab at it if you wanted.