Use getAnnotations of TestCase class

fix #1