 				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 return the device given the shorter uuid as a string', ->
						resin.models.device.get(@shortUuid).then (device) =>
							m.chai.expect(device.id).to.equal(@deviceInfo.id)

					it 'should fail to find the device given the shorter uuid as a number', ->
						promise = resin.models.device.get(parseInt(@shortUuid, 10))
						m.chai.expect(promise).to.be.rejectedWith("Device not found: #{@shortUuid}")

		describe 'given a single application with two offline devices that share the same uuid root', ->

