Add spec for dom based paths - Senthil
Spec cleanup - Senthil