register machine impl test