Add tests for utils.type

To increase that sweet, sweet test coverage