minor fix in test selfjoin rewriting
minor adding test of content of the result of rule with self join rewrote