updates to API generator and Unit Tester