Add errors table entry for bad references
Add test for ValueError in response to invalid ref (issue 294)