Factorize setup_org() and setup_repo() in GH repo unit tests
Add unit tests for is_whitelisted logic