Add correct dependencies and spec helper for rspec

Fix whitespace on tests
Fix indentation and whitespaces