Use public API in test (test should not rely on implementation for setup context)