Fix compiler warnings. Add additional test case for UseInitFlow