styles and refactored the test data code