added timeUnit class and tests