Mastering Loop Testing: A Step-by-Step Tutorial