Added unit test, and added more functionality to article.php