test for operator add rule method