Use rule feature of JUnit. All tests in FeatureToggleTest is broken, we need rewrite some.