Add ability to use stdin for tests.