Fixed jscs errors
Added tests to validate duration syntax.
Merge pull request #19 from walmik/develop

Added tests to validate duration syntax.