#50 - advanced tests (some hacks test) + gc memory free for query