setup guard, added blog tests, model and migration