Jacinta Allan is facing a test of her premiership as tens of thousands of Victorians head to the polls for dual by-elections.