Tests for create_spec