adding tests and CLI check for 0 or less input for duration