Added tests for authentiction