fix two of the errors in running unit/api_test.rb