Tweaks to the static method helpers. Added an assertNotUndefined() helper to deal with cases where objects might not be null but undefined.