Added tests for getting refresh token