Move endpoints in integration tests into functions
Add missing required meta-data setup.py arg: url