unit tests for annotation api