support for keyword arguments in PyQuery custom functions (PyQuery.fn); hook tests