Added tests for login and registration (with basic authentication)