inject api class into ajax tester classes