Move `bind` polyfill to test environment

Declaring the polyfill within the test environment makes the library
source more direct, smaller, and easier to read.