Test api calls using scala for Kontagent