Refactoring of RSpec tests

Eliminate dublications
Merge pull request #1 from LenzoVoek/refactoring

Refactoring of RSpec tests