refactored the tests for the all operator