Add workflow tests.

Cleanup simple tests.
Fix bug.
Change filename mapping function.