Fixed all compilation errors in test cases by adapting new annotation abstraction API.