Adds some analytics unit testing