reformat code in test directory