// Polyfills for test environment