Doc and unittest for 'defined'. See Issue #129.