#9 Add missing error unit tests