Added unit of work factory
Expanded existing unit of work test cases