Add unit tests for loading of available grouped queries