Add getCoefficentOfTerm function
Add tests for getCoefficentOfTerm