Re #7657. Correct indentation: tabs -> spaces.
Re #7657. Make tests pass when APITest executable is run directly.