Updates for QTL apps and updated test

Minor updates for plant and worm qtl apps
Updated a test for changed database behaviour