Random test failure in dates_test

I was having an issue where the test for {{now}} would periodically fail because of millisecond(s) difference between when the template was compiled and the assertion. I wasn't sure of the best way to avoid this, but this simple check that the time is included in a range of the last 5 milliseconds has worked well for me.