Add validation exception

fixes #65 

I also had to update a few tests which were throwing other errors internally rather than the one we wanted.

@maartenvg