Reformating test code