api connection testing with mark