reformatting test code