Fixed bugs in complex division. Added tests.