Implemented parsing terrain string functions and updated test case.