fixed ugly tests
added category manager with_num_posts method