Fixed some errors in unit tests. Refs #9358.
Removed workspaces generated in unit tests. Refs #9358.