Testing self join deletion.