fixed assertion by regex instead equal