Initial effort to move from tabs to spaces, fix an issue with test results, and made response the 4th parameter to api calls