Spelling errors fixed.
Tests for preferences controller.