reconstructed junit tests for stringquery.java