fix tests in apitokenreplimpl