add helper testing code