Move type definitions to language_collection.go
Add tests for commandForExtension
Add pending specs for things that haven't been tested yet