Errors now throw directly
First tests implemented