Refactor tests to use helper methods
Extract timestamp logic from Completions Controller