Add test for static field dependency.