Added phasor arithmetics and more modular tests