New file of functions for testing.
Now testing values are computed by functions.
Reorganised tests into groups.