fix model bug and add model test.
add model path parameter.
change name