Reduce visibility as these methods are only meant to be accessed
in tests.