Test tenant renaming, add some logging to log in and tenants tests