add unittest for annotation