Padding zeros to milliseconds, and add test case