Add test case for csharp attributes caching