Added tests for the authenticate class.