add unittest for tag system