Add keg tests
Add automapper config to repos
Minor changes to constructors and repo mappings