Fixing issue mentioned in #51 with query function

Should use call rather than apply, test included
prep for 0.2.6
release 0.2.6