basic tests for error handling (#54)