support unicode version test for java 8

Unicode module implementation has a fixed version for java 7 and java 8, and the test just checked the version 7 unicode version, now I did the check for both versions based on current implementation.
P.S.: This test if failing if used with java 8.