Added tests of the logic functions for count_ops() function.