adding a test for anonymous type