use encouraged rspec methods
move class instance variable to module