Add test for static constructor.