Tests the behavior of whitelisting origins and removing them later.