re-fix exceptions
fixed stats service stubbing for functional tests
added functional tests for stats
centralised stats event testing and extended to all the due parts