queryCommandValue Method test sample