hooked functional tests against api.py