Tests the behavior of allowlisting origins and removing them later.