Added functional test for create post