Added test method for subtract method