 				describe 'resin.models.device.has()', ->
 
 					it 'should be rejected with an error for an ambiguous shorter uuid', ->
-						promise = resin.models.device.has('aaaaaaaaaaaaaaaa')
+						promise = resin.models.device.has(@uuidRoot)
 
 						m.chai.expect(promise).to.be.rejected
 							.and.eventually.have.property('code', 'ResinAmbiguousDevice')

				resin.models.application.create('TestApp', 'raspberry-pi').then (application) =>
					@application = application

					uuid = '1234567aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
					resin.models.device.register(application.app_name, uuid)
				.then (deviceInfo) =>
					@deviceInfo = deviceInfo

				describe 'resin.models.device.get()', ->

					it 'should be rejected with an error if there is an ambiguation between shorter uuids', ->
						promise = resin.models.device.get(@uuidRoot)

						m.chai.expect(promise).to.be.rejected
							.and.eventually.have.property('code', 'ResinAmbiguousDevice')
