initial license template resource
fix root lifecycle tests; update license tests
license resource working with template