add annotation test for unique class constraint