Adding tests for tvstatistics.py