unit tests for needs_new_access_token method