using exist tests instead of comparing contents