Added some scala object + testcases