Updated tests for ComplexNumber task

Check that IFormattable implementation throws FormatException for
unsupported format