Adds tests for a few common validations.

Refs #1.