Add lot of functional tests for annotations