Move jekyll loops of posts and categories into test file