created util class and finalzed tests.