add test for multiple duration and use %q to print out strings. resolve #4