Structure tests

use camelCase to name vars; rename to getRootForTesting