Fold library regression tests into tutorial.