update test code and man files