Although it might not be exactly what you're looking for, google analytics has a debug mode which displays all tracking data in the console. This is a manual rather than automated testing option, but I still find it very very useful.
If you're testing a site you own, you can change the analytics tracking code to use this mode: replace all references to /ga.js with /u/ga_debug.js in the tracking code for that page
(https://developers.google.com/analytics/resources/articles/gaTrackingTroubleshooting#gaDebug)
Note that you only want to do this temporarily or on a test site as the debugging file is larger and will slow the page down.
Easier option is available if you use Chrome browser - install the Google Analytics debugger extension, and when you turn it on, all GA tracking data of any site you visit will be logged in the console. The extension is found here:
https://chrome.google.com/webstore/detail/jnkmfdileelhofjcijamephohjechhna
I'm still looking for a way to automate testing, so that you can get the output and test it with a regex or something similar. If anyone knows how to capture GA debugging output in a form that can be tested - by redirecting to a text file etc, then I'd love to know!