Testing for path instead of relying on error suppression