Added tests for method 'subtract'.
Added method 'subtract'.