Add tests for the spec edit command

Covers the spec edit command.