Add test using construct query in tranformer - issue #567