Added testing for recursive Gray