Add kernel management in program module + tests