refactoring local test