Added functional test for listing threads by tags