Add kernel test, segment extension and a spec file which will replace the current composer.json