tests should throw exceptions