The parameter index was only set by the xml parsing so again
programmatic deployment is broken.
Don't put logic in the xml parsing!
Always write two tests - xml and programmatic.
I've fixed up some other issues by moving cross initialization in the initialVisit()