Added some unit tests for the authenticate class