Fixed the bugs of save_permission_filter in v2 tag endpoints, and added tests.