Add test for anonymous field