Remove static initializer in test cases