Story 49871765: added unit testing specs around local storage model (ported from Rails app) and display prefs model (new). Also fixed some bugs in display prefs found by making this spec