Lots of work on tests
add tests for variance and so on