test against stdio, more programmatic tests