Added authorization and auth unit test

Added auth schema and test for it