helper testing optimizations