Add typeOf() and is() helpers and tests