fix unittest helper