Test case for constructor annotations