Fixed typo from 'YearTer' to 'YearTerm' and that solved the problem. Tests are passing 100% and code works as expected.