Added some pprints to test_api.py