utils for common test