Added tests and authentiication client.