create factories for tests and write a few blog unit tests
Merge branch 'master' into blog_posts