Rewrite unit tests as specs so they can be disabled by plugins.
Merge pull request #391 from opf/feature/fix-unit-tests

Rewrite unit tests as specs so they can be disabled by plugins.