Corrected db test
added post creation to post controller