This needs a test case for a non integer search param, and it needs to handle things that aren't numbers ending up in q.