Fix issues/2331: Bode plot returns continuous phase

Fixing issues/2331( Bode plot should return continuous phase (Trac #1812) ) and added test for the issue.