Fixed broken specs.
Moved "require" to before hook.
Merge pull request #12 from iliabylich/fixed-broken-specs

Fix broken specs.