Add tests and real GdsApiAdapter code