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

Please review #38 ,and merge to 1.0.x branch.
see terasolunaorg/terasoluna-gfw#12.

test is all OK.