Add enum to Duration time type.
Created JUinit test to test Observer.