function to free dzen_token added. tests updated