Test that only public post types are allowed.