bug fix with any() and all()
add test cases for any() and all() methods