constructor param test test state machin factori 