Adding tests for workflows index
Fixing bugs per TDD