what was andrew johnson terms in office?