fixes failing specs
fixes deprecation warning
Merge pull request #3 from balauru/spec_fix

Spec fix