Fixed an issue with STARTest JUnit test which was caused by processing
check-queries sometimes in the wrong order. Synchronizing before the
first check-query seems to solve this issue. Update of log4j2 config
files