test(utils): type, isDefined