Create statemachinetest.js