AMEC-1877, AMEC-2144 added the logic for checking if the article has pdf
AMEC-1877, AMEC-2144 modified the code for its unit test