Clean up target command test

[#66713898]