Fix seconds in timestamps generation for tests