Add initial API 18 assertions.

Closes #107.