Wrote tests to demonstrate optional groups bug