Adding tests to cover generating a rules test