Added traits to parser tests