tweak test api scripts and sample config