Add specs for error cases
Merge pull request #58 from duncanbeevers/spec-error-cases

Add specs for error cases