Update model and add unit test support. Correct some boot for some examples.