Change defined error behavior in spec (closes #24)