make localFactory private
added LocalTime
extract more code into TestUtils, added test case for usage of 'new'
don't use 'new' in test cases