added same test for scala