write tests for bindAll