Test uses api rather than server&client