make sure model initialises the state properly and add
regression test for this.