Fix filestat test pass condition.

Pass when all conditions are met, not when any condition is met.
(cherry picked from commit a1b118c34c625a290e48d4a7ec7ed512e39a81f5)