Fixed unittests after jquery update
2532: respect minumum duration when syncing

Moved MIN_DURATION and DEFAULT_DURATION to be constants of the app
module