fix unit test on api servlet call