[#19] refactored code for the article tests