Fix test on mysql where TIMESTAMP precision is only second