parse test output and prepare it