Added signout API endpoint and a test