Corrected cancellation of all(), added tests