Add JUnit tests + Bug fixed

Bug: wrong parathese matching in NOT event filter