add annotation test case in scala