Add tests for temp path rule.