Test that the valid post types excludes "attachment".