Fix private constructor tests.