Add a test to parse a duration given as a Number object instead of a String