Fleshing out library module structure, dependency injection concepts for tests and mocks