Improved rspec test for click link and edited grouping behavior 'it_should_behave_like'