Test storing and retrieving URLs