added optimizer rule test