fixed some bugs in ModelConverter and wrote tests for GpService.