Changed openmrs version to 1.9.7 in pom.xml; fixed compatibility issues ...

...in tests