unit tests for BlogListCtrl
some extra undefined checking.