more tests converted to doctests
complex with imaginary part 0 must be a real
a string of length one must be a scalar
missing import