Add failing test for #175

I tried to resolve #175 but I had trouble importing the project on Intellij IDEA and I need to understand how queries are built.

It would be great if you could help me a bit :smile: