adding create and kill session + associated test
adding licence header for test
refactoring CLI list method in list_sessions