formatting test code