 
 		it "should set the initial state when creating a Layer", ->
 			layer = new Layer
-			layer.states.currentName.should.equal 'initial'
+			layer.states.currentName.should.equal initialStateName
 			layer.states.initial.x.should.equal 0
-			assert.deepEqual layer.stateNames, ['initial']
+			assert.deepEqual layer.stateNames, [initialStateName]
 
 		it "should listen to options provided to animateToNextState", ->
 			layer = new Layer

		it "should emit willSwitch when switching", (done) ->

			test = (previous, current, states) =>
				previous.should.equal 'initial'
				current.should.equal 'a'
				@layer.states.currentName.should.equal 'initial'
				@layer.states.current.should.equal @layer.states.initial
				done()

			@layer.on Events.StateWillSwitch, test

			layer.states =
				stateA: x: 200
				stateB: scale: 0.5
			assert.deepEqual layer.states.all, [initialStateName,'stateA','stateB']

		it "should still support layer.states.states", ->
			layer = new Layer
			layer.states =
				stateA: x: 200
				stateB: scale: 0.5
			assert.deepEqual layer.states.states, [initialStateName,'stateA','stateB']

		it "should still support layer.states.animatingKeys", ->
			layer = new Layer
