add scala class and object model test case