 		km.person
 
 	@test.assertEquals originalPerson, newPerson, 'Person is persistent in localStorage'
+
+casper.then ->
+	originalPerson = @evaluate ->
+		km = new window.AnonKissmetricsClient 'abc123',
+			storage: 'localStorage'
+			storageKey: 'customKey'
+		km.person
+
+	newPerson = @evaluate ->
+		km = new window.AnonKissmetricsClient 'abc123',
+			storage: 'localStorage'
+			storageKey: 'customKey'
+		km.person
+
+	@test.assertEquals originalPerson, newPerson, 'Person is persistent in localStorage with custom storage key'
 
 
 # Record

	@test.assertTruthy ID, 'ID is stored in localStorage'

casper.then ->
	data = @evaluate ->
		km = new window.AnonKissmetricsClient 'abc123', {storage: 'cookie'}
		{cookies: document.cookie, person: km.person}


casper.then ->
	originalPerson = @evaluate ->
		km = new window.AnonKissmetricsClient 'abc123',
			storage: 'cookie'
			storageKey: 'somethingCustom'

		km.person

	newPerson = @evaluate ->
		km = new window.AnonKissmetricsClient 'abc123',
			storage: 'cookie'
			storageKey: 'somethingCustom'

		km.person

	@test.assertEquals originalPerson, newPerson, 'Person is persistent in cookies with custom storage key'

casper.then ->
	originalPerson = @evaluate ->
		km = new window.AnonKissmetricsClient 'abc123', {storage: 'localStorage'}
		km.person

