Fix username check for migration test