Fixes api_base issue. Removes prints, fixes test assert.