test replace on out of bound datetime
Just adds a test for the functionality that is working on `main`. Placed the test in amongst the other `DataFrame.replace` tests. 

- [x] closes #36782
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry

thanks @ryangilmour 