updated and fixed generated examples
updated test