Fixed out of range error for BC timestamp test

Old test issue reappeared, see link for details: https://github.com/rails/rails/pull/12234