Wrote unit test and fixed code for get_xpath_text
Refactored unit tests for less redundancy
Working on get_metadata unit test