Add preference assertions.

Closes #14.