jquery-client-test: add support for 'setup' and 'register' methods