test-key-params used defun rather than define-test

thanks thejnich for finding this bug.