Some reformatting of tests
Factored out common function
Made toString on value a default function.