Testing function which outputs the type of a variable.