Added unit test for admin new post route.