adjusted tests&examples to library changes (not finished)