allowed empty where clause and fixed err codes in jstest