wrote tests for rest of algorithm functions, still need test for #appropriate_articles