add query method tests for MD5 tagged annotations
fix memleak in mgth
fix expected error message
increase test runtime limit