updated test.php and Authorization class

updated the classes to be able to validate an authorization for a user