Fix bug for XPathEngineImpl & add JUnit test cases
Setup Berkeley DB