add scala object model test case