added official test for scala code