Fix time-dependent test

Cherry picked from https://github.com/OpenBuildings/purchases/commit/9e369757e1a06318a075a2a2f225e03baa44671d