add scala model and trail test case