Refactoring slow running specs

* Replacing slower running functional tests with faster unit tests.
* Removing unnecessary spec
* Replacing == with is_a?

[skip log]
Merge pull request #376 from projecthydra/removing-redundant-specs

Refactoring slow running specs