Add specs for _isUrlWhitelisted