Added ApiRequest tests