Started reorganizing tests in tests/ dir.
Added ability to calculate variables from others (eg p = p0 + p_pert)
and will attempt this if a variable is not found.