Fixing tests and updatingi secret_token to fix DEPRECATION WARNING