Added a test() function to api_client. Fixed bug with the config file. Added line numbers to the logging.