added tests
added Activity#duration