Revert "Test when removing duplicite AppCOntext"

This reverts commit e094b7d6285cdc30b7b0ec3b1ed14551cc8b5b6d.