Merge pull request #850 from dimitarp/next

[FIX] Core: fixed regex.jj
[FIX] Tests: JUnit is compile dependency for classes in src/main/java of basex-tests