Tests that class initializers are executed correctly.