The new black codes allowed to do five things.
-marry by law
- swear out affidavits in criminal cases
- go to school
- testify as witnesses during a trial
- sue or be sued in civil courts
Also the answer to you're question is testify as a witness during a trial.
I hope this is the right answer to this question?