Refactor state spec
Move head creation specs to depTree