 		mode: 'test'
 	}
 	
-	suffix = '0'
+	uid = '0'
 	logs = []
 	beforeEach () ->
 		env = {

			logs.push(arguments)

		env.data.generateUid = () ->
			return suffix

	it 'Application creation - env.data.apps.create (success case)', (done) ->
		
		expect(env.data.apps.create).toBeDefined()
		suffix = '-0'
		env.data.apps.create { name: 'myapp' }, { id: 1 }, (err, app) ->
			expect(err).toBe(null)
			expect(typeof app).toBe('object')



	it 'Application retrieval by id - env.data.apps.getById', (done) ->
		uid = '-2'
		env.data.apps.create {name:'myapp'}, { id: 1 }, (err, app) ->
			expect(err).toBeNull()
			env.data.apps.getById app.id, (err, app2) ->
