Add tests for fundamental errors (ref gh-1).
Fix typo.