writing tests in test.py, finished writing functions for api_helpers.py