unit tests for stage runner, and initial docs