Add micropost test, refactor home and micropost delete