generate can return more than one script
fix tests
bad typo