fix test issue 6 (is_primary mandatory)