Modified test application & added test case for criteriaQuery. #38

added test for see terasolunaorg/terasoluna-gfw#12.
Please review #38 , and merge to master branch.

Test is all OK.