Add more test cases for converting to ms (#169)