test case for static fields.