added a method for testing operators