Optimize TEST instruction a bit