Added tests for method 'negate()'.
Added method 'negate()'.