add `TesseBaseAPIInit Test and refactoring