spec should raise errors