Make bayesparser fast, add query file test