Adding any().type() method and tests