Formatting test code