Add basic validation to nodeunit functioning