Added state initialisation to test harness