More extensive testing in extensions_test.go.