Added unit tests for the Authorization object (needs some tweaks though)