[test] fix path for snapshot case on Mac