add helper code of test code