Added check if stored value is a number to spyOn, since localStorage wil...

...l store integers as strings.