add spec for article subset function
added spec for category subset