add some utils for test