Add test for inner booleanbuilders #592