updated get_exact_xpath function. should work faster now
added tests for get_exact_xpath functionality