Fixes comparison operators in class Magnitude

Issue #19
Add tests for class Magnitude

Issue #19