Added toBeDefined matcher. Refactored toBe into identityComparison function.