Add preference assertions.

Closes #14.
Merge pull request #16 from square/jw/preferences

Add preference assertions.