QA: refactor references test for RSpec3

* beginning of refactoring common_article_steps.rb, more to come

Change-Id: Ib4ae1b861ca30f5efbe6171d8ddb66c825427f2f
Merge "QA: refactor references test for RSpec3"