Add tests for util.delegate