UK: ensure we have a valid token during tests, last_login need to be same value when read from the database
DW: Added more exception message to help debug failing export and clean the metadata id passed from the drop down