Clean-up, speeling, add law test for RepositoryT.