fix unittest warning