test(client): add a unit test for buffering
feat: redirect client to "return_url" if specified

When capturing a browser, the url can specified a return url (as query param `return_url`) and Karma will redirect the client to that url after the test execution is done.