Fixed problem in parsing of time limits.
Some new tests.