On the one hand, yes, there should be tests. On the other, `goto fail;` :P
Also, adding braces from the start means that adding one new line of code is a one-line patch, instead of a four-line one - I do that for the same reason that I always put trailing commas on my array definitions