add loglevel

first tests implemented