#389 fixed failing test for nested queries.