Add test with innerJoin