Added tests to make sure the classes are final.