Added some tests to make sure the repository implements the right interface and that the class is final.