fix unit test on process api impl, use the mocked tenant accessor for tests