There is no tests for error scenarios?