some features for optimize tests and refactoring